import turtle
import time

# i = 1
# while True:
#     turtle.forward(i+10)
#     turtle.right(i)
#     i += 2

# for i in range(5):
#     turtle.forward(100)
#     turtle.right(144)
# time.sleep(3)

# i  = 0
# for i in range(5):
#     print(f"{i}")


# # 初始化变量
# i = 0
# for 临时变量 in 序列:
#     重复执行的代码1
#     重复执行的代码2


# for i in "abcdef":
#     print(i)

# for i in "ILoveYou":
#     if i == "e":
#         break
#     print(i)

# i = 1
# for i in range(1, 10):
#     j = 1
#     for j in range(1, i + 1):
#         print(f"{j}*{i}={i * j}", end="  ")
#     print()

# count = 0
# str = str(input("请输入一串字符："))
# if str != '\\n':
#     for i in str:
#         count += 1
#     print(f"count={count}")
# else:
#     print("输入有误！")

# count = 1
# for i in range(9):
#     count = (count + 1) * 2
# print(count)


# for i in range(1,100):
#     flag = True
#     for j in range(2,i):
#         if i % j == 0:
#             flag = False
#     if flag == True:
#         print(i)

# sum = 0
# height = 100
# for i in range(10):
#     if height == 100:
#         sum += height
#     else:
#         sum += height*2
#     height /= 2
# print(height)
# print(sum)


# num = int(input("请输入您要相加的数字："))
# count = int(input("请输入您要相加数字的个数："))
# sum = 0
# ret = num
# for i in range(count):
#     sum += num
#     num *= 10
#     num += ret
# print(sum)

# num = input("请输入您要相加的数字：")
# count = int(input("请输入您要相加数字的个数："))
# ret = 0
# for i in range(count):
#     ret += int(num)
#     num += num[0]
# print(ret)


# str = 'simagousheng'
# pos = str.find('s')
# print(pos)

# s = "123456"
# print(s[-1::-2])

# s = "123456"
# print(s[1:5])

# s = "a1b2c3d4"
# print(s[-1::])


# str = 'python'
# len(str)
# i = 0
# while i < len(str):
#     print(str[-i], end='  ')
#     i += 1

# list = ['html', 'js', 'css', 'python']
#
# for a, b in enumerate(list):
#    print ("%s ：%s" % (a, b))


# num = 0
# for i in range(5):
#     num += i
#     if i == 3:
#         break
# else:
#     num += 10
# print(num)

# *****
# s = 'ab'
# s += 10
# print(s)

# li = [1,2,3]
# print(li)
# li.reverse()
# print(li)

# *****
# li = [1,2,3]
# # li += 5
# li.insert(0,5)
# # li.extend([5])
# print(li)

# s = "你好同学，我们要要加持学习，加油，加油"
# s.replace("加油","努力")
# s = s.replace("同学","老王")
# print(s)


# # *****
# li = [1,2,3]
# li2 = [4,5]
# li.extend(li2)
# print(li)
# # print(li.extend(li2))
#
# # *****
# li += [5]
# print(li)

# my_dict = {'a': 10, 'b': 20, 'c': 30}
# yo_dict = {'d':40,'e':50}
# print(my_dict + yo_dict)

# num = int(input())
# print(num)

my_dict = {'a': 10, 'b': 20, 'c': 30}
# for key in my_dict:
#     print(my_dict[key])

# for key in my_dict.keys():
#     print(my_dict[key])

# for value in my_dict.values():
#     print(value)

for key, value in my_dict.items():
    print(key,':',value)